package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 分类父子信息对象 rating_category
 * 
 * @author ruoyi
 * @date 2024-11-18
 */
public class RatingCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键Id自增 */
    private Long categoryId;


       private int pageNum;   // 当前页
        private int pageSize;  // 每页条数

private String contentName;

    public String getContentName() {
        return contentName;
    }

    public void setContentName(String contentName) {
        this.contentName = contentName;
    }

    /** 类别名称 */
    @Excel(name = "类别名称")
    private String categoryName;

    /** 父类Id */
    @Excel(name = "父类Id")
    private Long parentId;

    /** 类别满分 */
    @Excel(name = "类别满分")
    private Long categoryScore;

    private List<RatingCategory> contents;

     public RatingCategory() {
        this.contents = new ArrayList<>(); // 初始化 contents 列表
    }

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setCategoryScore(Long categoryScore) 
    {
        this.categoryScore = categoryScore;
    }

    public Long getCategoryScore() 
    {
        return categoryScore;
    }

    @Override
    public String toString() {
        return "RatingCategory{" +
                "categoryId=" + categoryId +
                ", contentName='" + contentName + '\'' +
                ", categoryName='" + categoryName + '\'' +
                ", parentId=" + parentId +
                ", categoryScore=" + categoryScore +
                ", contents=" + contents +
                '}';
    }

    public List<RatingCategory> getContents() {
        return contents;
    }

    public void setContents(List<RatingCategory> contents) {
        this.contents = contents;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}
